namespace OasisCiq.Xal
{
    using System;
    using System.Linq;
    
    /// <summary>
    /// A list of premises type
    /// </summary>
    public class PremisesTypeList : XS.XSNormalizedString
    {
        private static readonly string[] PossibleValues = new[]
        {
            "Airport",
            "Area",
            "Building",
            "Farm",
            "Hospital",
            "House",
            "LandMark",
            "LargeMailUser",
            "Lot",
            "RailwayStation",
            "ShoppingComplex",
            "University",
            "Unit"
        };

        public PremisesTypeList(string value)
            : base(value)
        {
            if (!PossibleValues.Contains(value))
            {
                throw new ArgumentOutOfRangeException();
            }
        }
    }
}